const state = {
  userInfo: {},
};

const mutations = {
  //登录
  setLoginData: (state, info) => {
    state.userInfo = info;
  },
  //退出
  setLogout(state) {
    state.userInfo = {};
  },
};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
